/**
 * @Author: 唐祺峰
 * @Date: 2020/7/15 0015 15:55
 * @Version 1.0
 */
public class MyThread extends Thread {
    public MyThread(){
        System.out.println("当前线程的名字1："+Thread.currentThread().getName());
        System.out.println("当前线程的名字2："+this.getName());
    }
    @Override
    public void run(){
        System.out.println("当前线程的名字3："+Thread.currentThread().getName()+"   run=="+Thread.currentThread().isAlive());
        System.out.println("当前线程的名字4："+this.getName()+"  run=="+this.isAlive());
    }
}